







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The OrderedSet<T>.View class is used to look at a subset of the Items
inside an ordered set. It is returned from the Range, RangeTo, RangeFrom, and Reversed methods.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
[SerializableAttribute] public class View : CollectionBase<T>, ICollection<T>, IEnumerable<T>, IEnumerable |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class View _ Inherits CollectionBase(Of T) _ Implements ICollection(Of T), IEnumerable(Of T), _ IEnumerable |
Visual C++ |
---|
[SerializableAttribute] public ref class View : public CollectionBase<T>, ICollection<T>, IEnumerable<T>, IEnumerable |
Remarks
Views are dynamic. If the underlying set changes, the view changes in sync. If a change is made to the view, the underlying set changes accordingly.
Typically, this class is used in conjunction with a foreach statement to enumerate the items in a subset of the OrderedSet. For example:
![]() | |
---|---|
foreach(T item in set.Range(from, to)) { // process item } |
Inheritance Hierarchy
System..::Object
Wintellect.PowerCollections..::CollectionBase<(Of <T>)>
Wintellect.PowerCollections..::OrderedSet<(Of <T>)>..::View
Wintellect.PowerCollections..::CollectionBase<(Of <T>)>
Wintellect.PowerCollections..::OrderedSet<(Of <T>)>..::View
See Also
OrderedSet<(Of <T>)>..::View Members
Wintellect.PowerCollections Namespace